public static RasterViewPerspective GetNewViewPerspective(RasterViewPerspective viewPerspectiveOriginal,double[] imageOrientationVectors,PlaneOrientation po)
public:static RasterViewPerspective GetNewViewPerspective(RasterViewPerspective viewPerspectiveOriginal,array<double>^ imageOrientationVectors,PlaneOrientation^ po)
viewPerspectiveOriginal
The input RasterViewPerspective to which the PlaneOrientation will be applied.
imageOrientationVectors
The row and column orientation vectors (or direction cosine vectors) that apply to viewPerspectiveOriginal
po
A PlaneOrientation that is applied to the original RasterViewPerspective
The new RasterViewPerspective that results from having the PlaneOrientation applied.
The input view perspective is define by two values: the original RasterViewPerspective ( viewPerspectiveOriginal), and a row and column orientation vector ( imageOrientationVectors). This method returns the new RasterViewPerspective that results from applying a PlaneOrientation to the input view perspective.
This example does the following:
using Leadtools.Dicom;using Leadtools.Dicom.Common;using Leadtools.Dicom.Common.Extensions;using Leadtools;using Leadtools.Dicom.Common.Linq.BasicDirectory;using Leadtools.Dicom.Common.DataTypes;using Leadtools.Codecs;public void GetNewViewPerspectiveExample(){// Create a new coronal PlaneOrientation that corresponds to a horizontal flipPlaneOrientation poCoronal = new PlaneOrientation();poCoronal.Name = "Coronal or Frontal";// This corresponds to a horizontal flippoCoronal.Top = OrientationAxis.Inferior;poCoronal.Right = OrientationAxis.Right;// This condition is ignoredTagValueOrientationCondition condition = new TagValueOrientationCondition(DicomTag.ImageOrientationPatient, null);poCoronal.Condition = condition;// This specifies a row and column orientation vector that correspond to a coronal slice// Row: (1,0,0)// Col: (0,0,-1)double[] imageOrientationVectors = new double[6] { 1, 0, 0, 0, 0, -1 };// Find the new view perspectiveRasterViewPerspective newViewPerspective = DicomExtensions.GetNewViewPerspective(RasterViewPerspective.TopLeft, imageOrientationVectors, poCoronal);// New view perspective should be BottomLeftConsole.WriteLine("newViewPerspective should be BottomLeft\nActual newViewPerspective is " + newViewPerspective.ToString());}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
